package org.jsola.contract.provider.impl;

import org.jsola.contract.provider.ISiteFileProviderService;
import org.jsola.file.service.ISiteFileService;
import org.jsola.user.core.TokenUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author Think
 */
@Service("contractSiteFileProviderServiceImpl")
public class SiteFileProviderServiceImpl implements ISiteFileProviderService {

    @Autowired
    private ISiteFileService siteFileService;

    @Override
    public List<String> upload(MultipartFile[] files, String downloadType, TokenUser tokenUser) {
        return siteFileService.upload(files, downloadType, tokenUser);
    }
}
